package com.erlin.store.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.erlin.platform.controller.param.AuditStoreParam;
import com.erlin.store.controller.param.StoreRegisterParam;
import com.erlin.store.controller.vo.StoreInfoVo;
import com.erlin.store.entity.Store;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author alin
 * @since 2021-05-25
 */
public interface IStoreService extends IService<Store> {
    /**
     * 商户注册
     * @param param
     * @return
     */
    StoreInfoVo register(StoreRegisterParam param);

    /**
     * 获取待审核的商户信息
     * @return
     */
    PageInfo getAuditStore();

    /**
     * 审核用户
     * @param param
     * @return
     */
    boolean auditStore(AuditStoreParam param);

    /**
     * 获取商户下所有的商店信息
     * @return
     */
    List<StoreInfoVo> searchOwnerStores();
}
